<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>流程</title>
    <link rel="stylesheet" type="text/css" href="../../../static/lib/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../../../static/plugin/layer/skin/layer.css">
    <link rel="stylesheet" href="../../../static/css/dj-css.css">
    <link rel="stylesheet" type="text/css" href="../../../static/css/x-admin.css" media="all">
    <link rel="stylesheet" type="text/css" href="model.css">
</head>
<body>
<div id="deptApp" class="x-body">
    <div class="clearfix" >
        <form class="layui-form fl" action="">
            <div class="dj-select dj-select-inline">
                <label   style="height:auto;padding:3px 15px;width:110px;text-align: right;font-weight: bold;">类型：</label>
                <div class="dj-select-content" style="width: 196px;">
                    <div class="dj-select-input" flag = 'true' style="width: 190px;">
                        <span class="dj-selected readOnly" type="text" name=""  selectedCode=" " style="height:32px;line-height:32px;width: 190px;" id="keyWord">全部分类</span>
                        <i></i>
                    </div>
                    <ul class="dj-select-list" style="width: 190px;">
                        <li code="0">全部分类</li>
                        <li v-for="item in msgType" :code="item.code">{{item.name}}</li>
                    </ul>
                </div>
            </div>
        </form>
        <div class="layui-btn-group fl ">
            <button class="layui-btn" @click="lay">查询</button>
        </div>
        <div class="layui-btn-group fl" style="margin-left:30px;">
            <button class="layui-btn" @click="addModel">新建模型</button>
        </div>
    </div>
    <div class="tableWrap">
        <table class="" border="0" cellspacing="0" cellpadding="0">
            <thead>
            <tr>

                <th>流程分类</th>
                <th>模型ID</th>
                <th>模型标识</th>
                <th>模型名称</th>
                <th>版本号</th>
                <th>创建时间</th>
                <th>最后更新时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <tr v-for="(item,index) in deptLists"   >

                <td>{{item.category | typeFormat}}</td>
                <td v-text="item.id"></td>
                <td v-text="item.key"></td>
                <td v-text="item.name"></td>
                <td v-text="item.version"></td>
                <td>{{item.createTime | formatDate}}</td>
                <td>{{item.lastUpdateTime | formatDate}}</td>
                <td>
                    <div class="layui-btn-group flexBox">
                        <!--<a href="${pageContext.request.contextPath}/act/process-editor/modeler.jsp?modelId=${model.id}" target="_blank">编辑</a>-->
                        <!--<a href="${ctx}/act/model/deploy?id=${model.id}" onclick="return confirmx('确认要部署该模型吗？', this.href)">部署</a>-->
                        <!--<a href="${ctx}/act/model/export?id=${model.id}" target="_blank">导出</a>-->
                        <!--<a href="${ctx}/act/model/delete?id=${model.id}" onclick="return confirmx('确认要删除该模型吗？', this.href)">删除</a>-->
                        <button class="layui-btn "  @click="edit(item)">编辑</button>
                        <button class="layui-btn but-orange"  @click="deploy(item)">部署</button>
                        <button class="layui-btn "  @click="export1(item)">导出</button>
                        <button class="layui-btn but-orange"  @click="del(item)">删除</button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div id="pagination" class="fl"></div>
    <div class="layui-laypage-curr pageHideFlag" style="text-align: center;line-height: 30px;height:30px;margin-top:10px;font-size: 0;float:left;">
        <span class="layui-laypage-next" style="display: inline-block;height:28px;font-size: 12px;color:#333;border:1px solid #e2e2e2;padding:0 10px;">
            共 {{totalNum}} 条数据
        </span>
    </div>
    <div class="layui-laypage-curr pageShowFlag" style="display: none;text-align: center;line-height: 30px;height:30px;margin-top:10px;font-size: 0;float:left;">

        <span class="layui-laypage-curr" style="display: inline-block;width:38px;height:30px;background: #5eabed;border:1px solid #5eabed;">
            <em style="font-style: normal;font-size: 12px;color:#fff;">1</em>
        </span>
        <span class="layui-laypage-next" style="display: inline-block;height:30px;font-size: 12px;color:#333;border:1px solid #e2e2e2;padding:0 10px;">
            共 {{totalNum}} 条数据
        </span>
    </div>
</div>
<script src="../../../static/lib/jquery.min.js"></script>
<script src="../../../static/lib/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/lib/vue.min.js"></script>
<script src="../../../static/lib/dj-js.js"></script>
<script src="../../../static/lib/x-layui.js"></script>
<script src="model.js"></script>